
<div class="pageContent">
    <div class="pageFormContent" layoutH="58">
        <ul class="tree expand">
            <#list treeList as tree>
            <li><a class="bringBack" value="{code:'${tree.workCenterTypeCode!''}', name:'<@json_escape>${tree.typeText!''}</@json_escape>'}">${tree.typeText}</a> <#if tree.children?? &&tree.children?size gt 0>
                <ul><@workCenterTypeTree children=tree.children />
                </ul> </#if> </#list>
        </ul>
    </div>
    
    <div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
        </ul>
    </div>
</div>

<!-- 递归产生树的宏定义 -->
<#macro workCenterTypeTree children> <#if children?? && children?size gt 0> <#list children as child>
<li><a class="bringBack" value="{code:'${child.workCenterTypeCode!''}', name:'<@json_escape>${child.typeText!''}</@json_escape>'}">${child.typeText}</a> <#if child.children?? &&child.children?size gt 0>
    <ul><@workCenterTypeTree children=child.children />
    </ul> </#if> </#list> </#if> </#macro>